//
//  AppDelegate.m
//  007-NSOperation
//
//  Created by 彭继宗 on 15/10/28.
//  Copyright © 2015年 彭继宗. All rights reserved.
//

#import "AppDelegate.h"
#import "JMLatestTableViewController.h"
#import "JMMainViewController.h"

#import "JMNewsController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    //加载皮肤
    [self setupAppearence];
    //设置状态栏
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
    
    //创建window
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    
    //设置根控制器
    
    UITabBarController *rootTabbar = [[JMMainViewController alloc] init];
    
    self.window.rootViewController = rootTabbar;
//    self.window.rootViewController = [[JMNewsController alloc] init];
    
    [self.window makeKeyAndVisible];
    
    
    
    return YES;
}


//加载皮肤
- (void)setupAppearence
{
    [[UINavigationBar appearance] setBarTintColor:basicColor];
    [[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
}


@end
